import java.util.PriorityQueue;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86131
 * Date: 2024-01-21
 * Time: 21:31
 */
public class Test {
    public static void main2(String[] args) {
        PriorityQueue<Integer> priorityQueue = new PriorityQueue<>();
        priorityQueue.offer(10);
        priorityQueue.offer(4);
        priorityQueue.offer(8);
        priorityQueue.offer(3);
    }
    public static void main(String[] args) {
        int[] array = {27,15,19,18,28,34,65,49,25,37};
        TestHep testHep = new TestHep();
        testHep.initElem(array);
        testHep.createBigHeap();
        System.out.println("========");
        testHep.heapSort();
        System.out.println("========");
        //System.out.println(testHep.poll());
        //System.out.println("========");
        //testHep.offer(80);
        //System.out.println("========");
    }
}
